Skip to content

Disable TpaLoadFailureTest cases on mobile platforms#128417

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-ios-simulator-tpa-load-test
Draft

Disable TpaLoadFailureTest cases on mobile platforms#128417
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-ios-simulator-tpa-load-test

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 20, 2026

TpaLoadFailureTest.NotFound_ExceptionContainsAssemblyPath and TpaLoadFailureTest.Corrupt_ExceptionContainsPathAndHResult fail on iossimulator-arm64 (AllSubsets_CoreCLR) because the expected FileNotFoundException is not thrown — TPA bind behavior differs on mobile CoreCLR.

Add PlatformDetection.IsNotMobile to the ConditionalFact conditions on both tests so they are skipped on mobile targets.

[ConditionalFact(typeof(PlatformDetection),
    nameof(PlatformDetection.IsCoreCLR),
    nameof(PlatformDetection.HasAssemblyFiles),
    nameof(PlatformDetection.IsNotMobile))]
public void NotFound_ExceptionContainsAssemblyPath() { ... }

The third test in the file (SharingViolation_ExceptionContainsPathAndHResult) is already Windows-only and unaffected.

Co-authored-by: elinor-fung <47805090+elinor-fung@users.noreply.github.com>
Copilot AI requested review from Copilot and removed request for Copilot May 20, 2026 21:12
Copilot AI changed the title [WIP] Fix TpaLoadFailureTest for iOS simulator failing test Disable TpaLoadFailureTest cases on mobile platforms May 20, 2026
Copilot AI requested a review from elinor-fung May 20, 2026 21:12
@github-actions github-actions Bot added the area-PAL-coreclr only for closed issues label May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-PAL-coreclr only for closed issues

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

[ci-scan] Test failure: TpaLoadFailureTest on iossimulator - No exception thrown

2 participants